#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import article_blueprint
from api.articleResource.articleResource import ArticleResource
from api.articleResource.articleOtherResource import ArticleOtherResource

api = Api(article_blueprint)

api.add_resource(ArticleResource, '/article/<article_id>', '/article', endpoint='Article')


@article_blueprint.route('/article/update/<article_id>', methods=['PUT'], endpoint='ArticleUpdate')
def update(article_id):
    return ArticleOtherResource.sensitive_update(article_id)
